package com.luoye.lj.platform.dao;

import com.luoye.lj.platform.model.domain.AuthInfo;
import com.luoye.lj.platform.model.domain.AuthInfoDetailCollection;
import com.luoye.lj.platform.model.domain.AuthInfoSearchCondition;

import java.util.List;

/**
 * Created by wei on 2015/11/30.
 */
public interface IAuthServiceDao {
    //添加权限管理
    AuthInfo addAuth(AuthInfo aif);
    //删除权限
    boolean delAuth(long authId);
    //修改
    AuthInfo modifyAuth(AuthInfo aif);
    //查询所有
    List<AuthInfo> getAll();
    //根据ID查询
    AuthInfo getById(long id);
    //根据条件查询
    AuthInfoDetailCollection search(AuthInfoSearchCondition authsearch);
    AuthInfo getByname(String authname);
    int getDelmark(long id);
    boolean recover(long id);
}
